using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Tools;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class SysAccountsExtend
{
		public static ResponseSysAccountsDto ToResponseDto(this SysAccounts entity)
{			return new ResponseSysAccountsDto
			{
				id = entity.AId,
				name = entity.AName,
				account = entity.AAccount,
				role = entity.ARole,
				createTime = entity.ACreateTime,
				createTimeStr =Tools.TimeToString(entity.ACreateTime),
			};
		}
	}
}
